<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>易能旅游网站--订单详情</title>

	<style type="text/css">
		a:hover{
			text-decoration: none;
		}
	
		.tknr{
			width: 744px;
			height: 200px;
			overflow: auto;
		}
		
		tr{
			height: 28px;
		}
		
		td.titletd{
			width: 80px;
			text-align: right;
		}
		
	</style>
	<script type="text/javascript">

	</script>	
	
  </head>
  <body style="margin:0;padding:0;height:100%;overflow:scroll;background:#F2FBFF">
  	<c:set var="orderInfo" value="${orderVo.orderInfo}"/>
  	<c:set var="travelList" value="${orderVo.travelList}"/>
  	<c:set var="userInfo" value="${orderVo.userVo.userInfo}"/>
  	<c:set var="companyInfo" value="${orderVo.userVo.companyInfo}"/>
  	
			<div class="right" id="right">
				<!-- 右侧内容区域 -->
				<div style="margin: 5px;">
					<h3 style="background-image: url('${ctx}/img/front/info.png')">订单基本信息</h3>
					<div>
						<table cellspacing="0">
							<tr>
								<td class="titletd">订单编号：</td>
								<td width="280px">${orderInfo.orderId}</td>
								<td class="titletd">订单状态：</td>
								<td>
								<c:choose>
									<c:when test="${orderInfo.orderStatus eq constant.ORDER_STATUS_NOPAY}">未付款</c:when>
									<c:when test="${orderInfo.orderStatus eq constant.ORDER_STATUS_PAYED}">已付款</c:when>
									<c:when test="${orderInfo.orderStatus eq constant.ORDER_STATUS_OK}">已确认</c:when>
									<c:when test="${orderInfo.orderStatus eq constant.ORDER_STATUS_CANCEL}">已取消</c:when>
								</c:choose>
								</td>
							</tr>
							<tr>
								<td class="titletd">创建日期：</td>
								<td width="280px"><fmt:formatDate value="${orderInfo.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								<td class="titletd">团队类型：</td>
								<td>
									<c:if test="${orderInfo.groupType eq constant.GROUP_TYPE_SIX}">1-6人团</c:if>
									<c:if test="${orderInfo.groupType eq constant.GROUP_TYPE_SEVEN}">7-38人团</c:if>
								</td>
							</tr>
								<tr>
								<td class="titletd">付款期限：</td>
								<td><fmt:formatDate value="${orderInfo.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								<td class="titletd">订单总额：</td>
								<td><fmt:formatNumber value="${orderInfo.orderTotalAmount}" pattern="0"/>￥</td>
							</tr>
							<tr>
								<td class="titletd">行程：</td>
								<td width="280px">${orderInfo.day }天${orderInfo.night }夜    ${orderVo.routeInfo.routeName}</td>
								<td class="titletd">出发地：</td>
								<td>${orderInfo.goCityCn}</td>
							</tr>
							<tr>
								<td class="titletd">启程日期：</td>
								<td><fmt:formatDate value="${orderInfo.goTime}" pattern="yyyy-MM-dd"/></td>
								<td class="titletd">返回日期：</td>
								<td><fmt:formatDate value="${orderInfo.backTime}" pattern="yyyy-MM-dd"/></td>
							</tr>
							<tr>
								<td class="titletd">双人间：</td>
								<td>${orderInfo.doubleRoomCount }人</td>
								<td class="titletd">单人间：</td>
								<td>${orderInfo.singleRoomCount }人</td>
							</tr>
							<tr>
								<td class="titletd">儿童占床：</td>
								<td>${orderInfo.childBedCount }人</td>
								<td class="titletd">儿童不占床：</td>
								<td>${orderInfo.childNoBedCount }人</td>
							</tr>
							<tr>
								<td class="titletd">加床：</td>
								<td>${orderInfo.addBedCount }人</td>
								<td class="titletd">总人数：</td>
								<td>${orderInfo.totalCount }人</td>
							</tr>
							<tr>
								<td class="titletd">备注：</td>
								<td colspan="3">${orderInfo.remark}</td>
							</tr>
						</table>
					</div>
				</div>
				<div style="margin: 5px">
					<h3 style="background-image: url('${ctx}/img/front/users.png')">用户基本信息</h3>
					<div>
						<table cellpadding="0">
							<tr>
								<td>用户名：</td>
								<td>${userInfo.userName}</td>
								<td>公司名：</td>
								<td>${companyInfo.compName}</td>
							</tr>
							<tr>
								<td>联系电话：</td>
								<td>${userInfo.mobile}</td>
								<td>电子邮件：</td>
								<td>${userInfo.email}</td>
							</tr>
						</table>
					</div>
				</div>
				<div style="margin: 5px;">
					<h3 style="background-image: url('${ctx}/img/front/link.png')">线路详细信息</h3>
					<div>
						<table cellspacing="0">
						<c:forEach items="${travelList}" var="travel">
							<tr>
								<td class="titletd">第${travel.travelInfo.whichDay}天：</td>
								<td width="280px">${travel.travelInfo.depart}-${travel.travelInfo.arrival}</td>
								<td class="titletd">目的城市：</td>
								<td>${travel.travelInfo.cityCn}</td>
							</tr>
						</c:forEach>
						</table>
					</div>
				</div>
				<div style="text-align: center;margin-top: 10px;">
					<a style="text-decoration: none;" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-close">关闭</a>
				</div>
			</div><!-- end right -->
		
	
</body>

</html>
